package com.service.impl;

import com.loopdependencybean.Bean1;
import com.loopdependencybean.Bean2;
import com.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
public  class UserServiceImpl implements UserService {
//    private static final Logger log = LoggerFactory.getLogger(UserServiceImpl.class);


    public  void foo(){

        log.debug("foo方法被执行了");
    }

    @Override
    public void bar() {
        log.debug("bar方法被执行了");
    }

    @Transactional
    @Override
    public void addUser() {

    }

    @Override
    public void updateBean(Bean1 bean1, Bean2 bean2) {
        log.info("更新bean1={}，bean2={}",bean1,bean2);
    }
}
